xl: fixup "xl save" command line handling.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 27 Sep 2011 16:32:16 +0000 (17:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 27 Sep 2011 16:32:16 +0000 (17:32 +0100)
commitaf785dee41395dbf3b76ce47f7e9339976c10d55
tree354af4986839ec90792b04a3b86616b11076503e
parent84d9ddb1f26bb983c892d55696441f9bf81f1cd0
xl: fixup "xl save" command line handling.

The save file paramter is required so ensure we have enough arguments.

The config filename is optional so do not use argv[optind+3], which
may well happen to be NULL when the paramter is not present but
relying on that is pretty gross.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c